<?php 
define('_VIEW_MODEL_','default');
include("./init.php");
$result = $db->GetRow('select * from no_admin');
//$userId = getUserId();
$friend = "";
$novelsty = "";
$pageSize = 20;
require_once INC.'/pageclass.php';
//$pageObj = new Page(34,10,$smartyObj);
$id = isset($id)?intval($id):"";
$bid = intval($bsid);
$isphone = $db->GetRow("select `isphone` from {$telper}user where id = $id");
$rs = $db->Execute("select * from {$telper}bbs_cont where column1 = $bid");
if(!empty($rs)){
	$info=$rs->GetArray();
}else{
	$info = "false";
}
//echo "select * from {$telper}bbs_column where pid = '$bid'";
$rn = $db->Execute("select * from {$telper}bbs_cont where column2 = '$bid' order by created desc");
//echo "select * from {$telper}bbs_cont where column2 = '$bid' order by created desc";
$sty=$rn->GetArray();
if(empty($sty)){
	$sty = "false";
}
//print_r($sty);
$num = $db->GetRow("select count(id) from {$telper}bbs_cont where column2 = '$bid'");
$info = $rs->GetArray();
require_once INC.'/pageclass.php';
new Page($num['count(id)'],$pageSize,$smartyObj);
$tim = time();
header("Content-type:text/vnd.wap.wml;charset=utf-8");
$smartyObj->assign("isphone",$isphone['isphone']);
$smartyObj->assign("uid",$id);
$smartyObj->assign("bid",$bid);
$smartyObj->assign("time",$tim);
$smartyObj->assign("styl",$sty);
$smartyObj->assign("info",$info);
$smartyObj->display("bbscontdetil.tpl");

?>